/**
 *
 */
package wsepForum.ui.swing.innerPanels;

import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JPanel;

import wsepForum.ui.swing.outerPanels.AOuterPanel;

/**
 * @author Oren
 *
 */
public abstract class AInnerPanel extends JPanel {


	/**
	 *
	 */
	private static final long serialVersionUID = -2144548931440710088L;
	/**
	 *
	 */
	protected AOuterPanel outerPanel;

	public AInnerPanel(AOuterPanel oPanel)
	{
		this.outerPanel = oPanel;
	}


	protected JButton buttonFactory(String name, int coor1, int coor2, int coor3, int coor4) {
		final JButton button = new JButton(name);
		button.setFont(new Font("Tahoma", Font.PLAIN, 11));
		button.setBounds(coor1, coor2, coor3, coor4);
		add(button);
		return button;
	}
}
